/*
 *  Copyright 2022 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import url('../../styles/variables.less');

.custom-react-flow {
  .react-flow__node-input.selectable.selected {
    box-shadow: none;
  }
}

.custom-node-header {
  margin: -2px -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.24);
  position: relative;
  font-size: 14px;
  font-weight: 600;
}

.custom-node-header-normal {
  background-color: @body-bg-color;
  border: 1px solid @border-color;
}
.custom-node-header-tracing {
  background: rgba(176, 42, 172, 0.1);
  border: 1px solid @secondary-color;
}
.custom-node-header-active {
  background: @secondary-color;
  border: 1px solid @secondary-color;
  color: @white;
}

.custom-node-column-lineage {
  background: @body-bg-color;
  border: 1px solid;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.16);
  border-radius: 4px;

  .custom-node-column-lineage-body {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    position: relative;

    .custom-node-column-container {
      padding: 4px;
      border-radius: 4px;
      position: relative;
    }
  }
}
.custom-node-column-lineage-normal {
  border: 1px solid @border-color;
}
.custom-node-column-lineage-active {
  border: 1px solid rgba(176, 42, 172, 0.6);
}

.custom-edge-pipeline-button {
  background: @primary-color;
  color: @white;
  height: 32px;
  width: 32px;
  border-radius: 9999px;
}

.custom-node {
  .custom-node-header-active {
    .react-flow__handle {
      opacity: 0;
    }
    .custom-lineage-heading {
      color: @white;
    }
  }
}

.custom-control-search-box {
  width: 400px;
  height: 32px;
}
.custom-control-search-box-edit-mode {
  margin-left: 83px;
}
.custom-control-basic-button {
  padding-left: 4px;
  padding-right: 4px;
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.custom-control-fit-screen-button {
  border: 1px solid @border-color;
  border-radius: 4px;
  background-color: @body-bg-color;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.custom-control-zoom-slide {
  display: flex;
  column-gap: 8px;
  height: 32px;
  width: 150px;
}
.custom-node-expand-button {
  top: -14px;
  left: -12px;
  cursor: pointer;
  z-index: 1;
}
.load-more-node {
  border: 3.5px dashed #1890ff;
  border-radius: 18px;
  text-align: center;
  color: #1890ff;
  font-weight: 600;
  .load-more-node-sizes {
    color: #37352f;
  }
}

.control-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-control-edit-button {
  display: block !important;
}

.custom-lineage-heading {
  color: @text-grey-muted;
}

.suggestion-node-item {
  position: absolute;
  left: -10px;
  min-width: 230px;
  width: max-content;
  z-index: 20;
  background-color: @white;
  color: @text-color-secondary;
}
